/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.system.entity;

import com.thinkgem.jeesite.modules.sys.entity.Role;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 职位角色Entity
 * @author jyangye
 * @version 2018-01-11
 */
public class SysRolePost extends DataEntity<SysRolePost> {
	
	private static final long serialVersionUID = 1L;
	private String post;		// post

    private Role role;
	
	public SysRolePost() {
		super();
	}

	public SysRolePost(String id){
		super(id);
	}

	@Length(min=1, max=32, message="post长度必须介于 1 和 32 之间")
	@ExcelField(title="post", align=2, sort=20)
	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }
}